import { postAxios, getAxios } from '@/lib/http';
export const sampleSendApi = {
  // 新增
  add: (data) => {
    return postAxios('/sampleSend/add', data);
  },
  // 分页查询
  getList: (data) => {
    return postAxios('/sampleSend/page/query', data);
  },
  // 删除
  delete: (id) => {
    return getAxios('/sampleSend/delete/' + id);
  },
  // 查看邮件详情
  getDetail: (id) => {
    return getAxios('/sampleSend/detail/' + id);
  },
  // 更新编辑邮件
  update: (data) => {
    return postAxios('/sampleSend/update', data);
  },
  addTrack(data) {
    return postAxios('/sampleSend/tacklog/add', data);
  },
  getTrackList(id) {
    return getAxios('/sampleSend/tracklog/list/' + id)
  }
};
